package org.ghost.wechat.platform.controller;


import org.ghost.wechat.platform.dto.RspDTO;
import org.ghost.wechat.platform.service.IMediaPlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 服务号配置表 前端控制器
 * </p>
 *
 * @author 01
 * @since 2019-10-17
 */
@RestController
@RequestMapping("/mediaPlatform")
public class MediaPlatformController extends BaseController {
    @Autowired
    private IMediaPlatformService mediaPlatformService;

    @RequestMapping(value = "/{id}", method = RequestMethod.GET)
    public RspDTO get(@PathVariable Long id) {
        return this.render(this.mediaPlatformService.selectById(id));
    }
}

